import request from '@/utils/request'

// 定义多个方法
const apiMethods = {
  path: '',
  login(data) {
    return request({
      url: this.path + '/login',
      method: 'post',
      data
    })
  },
  logout() {
    return request({
      url: this.path + '/logout',
      method: 'post'
    })
  },
  info() {
    return request({
      url: this.path + '/info',
      method: 'get'
    })
  },
  update_pwd(data) {
    return request({
      url: this.path + '/change_pwd',
      method: 'put',
      data
    })
  }
}

export default apiMethods

